package com.hades.xq.seckill.controller;

import com.hades.xq.seckill.dao.dto.TbSeckill;
import com.hades.xq.seckill.service.SeckillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName SeckillController
 * @Description TODO
 * @Author Hades
 * @Date 2019-03-19:14:49
 * @Version V1.0.0
 */

//@RestController
//@RequestMapping("/seckill")
public class SeckillController {

//    @Autowired
    private SeckillService seckillService;

//    @RequestMapping(value = "/quaryById", method = RequestMethod.GET)
    public TbSeckill quaryById(@RequestParam("seckillId") Long seckillId) {
        return seckillService.quaryById(seckillId);
    }

}
